﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using LoungeRepo.Contracts.Core;

namespace Test.LoungeRepo.Normalizer
{
    class Simple
    {
        public string Text;

    }

    class Node
    {
        public string Text;
        [NonSerialized]
        public string Comment;
        public Node Child;
    }

    class Scalars
    {
        public int i;
        public double d;
        public decimal c;
        public bool b;
    }

    class SpecialSimpleTypes
    {
        public DateTime dt;
        public BindingFlags e;
    }


    class EntityNode : ILoungeRepoEntityIdentity
    {
        private string _id, _partition;

        #region Implementation of ILoungeRepoEntityIdentity
        public string Id { get { return _id; } set { _id = value; } }
        public string Partition { get { return _partition; } set { _partition = value; } }
        #endregion

        public EntityNode Next;
    }


    class ObjectReferencingEntities
    {
        public EntityNode E1, E2;
    }


    class StringEntity : ILoungeRepoEntityIdentity
    {
        #region Implementation of ILoungeRepoEntityIdentity
        public string Id
        {
            get { return "myid"; }
        }

        public string Partition
        {
            get { return "mypartition"; }
        }
        #endregion

        public string Text;
    }
}
